<include file="Public/min-header"/>
<div class="wrapper">
    <include file="Public/breadcrumb"/>
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                    <div class="box-header">
                        <nav class="navbar navbar-default">
                            <div class="collapse navbar-collapse">
                                <form class="navbar-form form-inline" action="" method="post">
                                    <div class="form-group">
                                        <input type="text" name="keywords" class="form-control" placeholder="搜索">
                                    </div>
                                    <button type="submit" class="btn btn-default">提交</button>
                                </form>
                            </div>
                        </nav>
                    </div>
                    <!-- /.box-header -->
                    <div class="box-body">
                        <div class="row">
                            <div class="col-sm-12">
                                <table id="list-table" class="table table-bordered table-striped dataTable">
                                    <thead>
                                    <tr role="row">
                                        <th><input type="checkbox"
                                                   onclick="$('input[name*=\'selected\']').prop('checked', this.checked);">
                                        </th>
                                        <th class="sorting" tabindex="0">会员ID</th>
                                        <th class="sorting" tabindex="0">会员名称</th>
                                        <th class="sorting" tabindex="0">关注时间</th>
                                        <th class="sorting" tabindex="0">操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <foreach name="collect" item="vo" key="k">
                                        <tr role="row" align="center">
                                            <td><input type="checkbox" name="selected[]" value="{$vo.user_id}"></td>
                                            <td>{$vo.id}</td>
                                            <td>{$vo.user_name}</td>
                                            <td>{$vo.add_time|date='Y-m-d H:i:s',###}</td>
                                            <td>
                                                <a href="javascript:;" data-url="" data-toggle="tooltip" title=""
                                                   class="btn btn-info goods_list">活动通知</a>
                                            </td>
                                        </tr>
                                    </foreach>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-6 text-left"></div>
                            <div class="col-sm-6 text-right">{$page}</div>
                        </div>
                    </div><!-- /.box-body -->
                </div><!-- /.box -->
            </div>
        </div>
    </section>
</div>
<script>
    $('.goods_list').click(function () {
        var url = $(this).attr('data-url');
        layer.open({
            type: 2,
            title: '活动关联商品列表',
            shadeClose: true,
            shade: 0.5,
            area: ['70%', '72%'],
            content: url,
        });
    });
</script>
</body>
</html>